package com.jeady.timetodo.activities.lock

import android.app.admin.DeviceAdminReceiver
import android.content.Context
import android.content.Intent
import android.util.Log
import android.widget.Toast

class DeviceAdmin : DeviceAdminReceiver() {
    val TAG = "device admin kt"
    override fun onEnabled(context: Context, intent: Intent) {
        super.onEnabled(context, intent)
        Toast.makeText(context, "[jeady] admin 已授权", Toast.LENGTH_SHORT).show()
        Log.i(TAG, "onEnabled: ")
    }

    override fun onDisabled(context: Context, intent: Intent) {
        super.onDisabled(context, intent)
        Toast.makeText(context, "[jeady] admin 取消授权", Toast.LENGTH_SHORT).show()
        Log.i(TAG, "onDisabled: ")
    }
}